﻿Imports CreativeImagesByKim
Imports System.IO

Namespace Pages
    Public Class CIMasterPage
        Inherits System.Web.UI.MasterPage

    #Region "Private Members"
        Private _CurrentPageName As String
        Private _Environment As PageEnvironment
    #End Region

    #Region "Page Methods"
        Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load
            ' Set the environment variable for all child pages
            Me._Environment = PageEnvironment.Development
            Me.hdnfld_Environment.Value = Me._Environment.ToString()

            ' Get the current page name
            Me._CurrentPageName = Path.GetFileName(Me.Request.FilePath)
            If Me._CurrentPageName <> "Home.aspx"
                Me.imgCollage.Visible = False
            End If
        End Sub
    #End Region

    #Region "Properties"
        
    #End Region
    End Class
End Namespace